package com.qcby.Mapper;

import com.qcby.Entity.TrainNum;
import com.qcby.query.TrainDetailQuery;
import com.qcby.query.TrainNumQuery;
import org.apache.ibatis.annotations.Mapper;

import java.lang.reflect.Type;
import java.util.Date;
import java.util.List;

@Mapper
public interface TrainNumMapper {
    List<TrainNumQuery> getTrainWithDetails(String time);
    TrainNumQuery getTrainWithDetailsByTrainId(int id);
    int insertTrain(TrainNum trainNum);
    void deleteById(Integer id);
    List<TrainNumQuery> getTrainWithDetailsAndOrders(Date time);
    TrainNum getTrainById(int id);
    void addIndex(int index,int id);
    void updateSeat(byte[] seat,int id);
    List<TrainNumQuery> getTrainWithDetailsAndOrdersBetweenTime(Date arriveTime,Date lateGoneTime);
}
